﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace EnterpriseAssets.Models
{
    /// <summary>
    /// 资产信息实体
    /// </summary>
    public class FixedAssetInfo
    {
        [Key]
        public Guid Id { get; set; }

        [Display(Name = "品牌")]//客户端显示标签
        [Required(ErrorMessage ="品牌为必填项")]//客户端验证必填项
        [MaxLength(50)]//数据库映射字段长度为nvarchar(50)
        public string Brand { get; set; }

        [Display(Name = "型号")]
        [Required(ErrorMessage = "型号为必填项")]
        [MaxLength(50)]//数据库映射字段长度为nvarchar(50)
        public string Model { get; set; }

        [Display(Name = "类型")]
        [Required(ErrorMessage = "类型为必填项")]
        [MaxLength(150)]//数据库映射字段长度为nvarchar(150)
        public string AssetType { get; set; }

        [Display(Name = "使用者")]
        [Required(ErrorMessage = "使用者为必填项")]
        [MaxLength(150)]//数据库映射字段长度为nvarchar(150)
        public string UsingName { get; set; }

        [Display(Name = "使用者部门")]
        [Required(ErrorMessage = "使用者部门为必填项")]
        [MaxLength(150)]//数据库映射字段长度为nvarchar(150)
        public string UsingNameDepartment { get; set; }

        [Display(Name = "系列号")]
        [Required(ErrorMessage = "系列号为必填项")]
        [MaxLength(50)]//数据库映射字段长度为nvarchar(50)
        public string SerialNumber  { get; set; }

        [Display(Name = "服务编号")]
        [MaxLength(50)]//数据库映射字段长度为nvarchar(50)
        public string ServiceNumber { get; set; }
    }
}